1 <?php
2 session_start();
3 include(
"header.php");
4 include(
"sidebar.php");
5 include(
"dbconnection.php");
6 $sql = mysql_query(
"select * from vehiclestore where vehicleid=$_GET[vahicleid]");
7 $row = mysql_fetch_array($sql);

8 if
(!isset($_SESSION[custid]))
9 {
10     header(
"Location: login.php");
11 }
12
13 ?>
14         
15                             
16         <div id=
"main">
17         <h3>Vehicle store</h3>
18
19                                             
20         <table width=
"538" border="1">
21           <tr>
22             <td width=
"268">
23             <p><img src=
"upload/<?= $row['images']; ?>" width="208" height="130" align="left" /><br />
24               <br />
25             </p></td>
26             <td width=
"246"><p><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
27               <strong>Model:</strong> <?= $row[
'model']; ?> <br />
28               <strong> Brand:</strong> <?= $row[
'brand']; ?><br />
29               <br />
30               <br />
31             </p></td>
32           </tr>
33           <tr>
34             <td>Other Information</td>
35             <td><p><?= $row[
'description']; ?></p>
36             </td>
37           </tr>
38           <tr>
39             <td colspan=
"2"><strong>Estimated price: Rs.<?= $row['estprice']; ?></strong></td>
40           </tr>
41           <tr>
42             <td align=
"right"> <strong><?php echo "<a href='testdrive.php?vahicleidnum=$row[vehicleid]'>Test Drive&gt;&gt;</a> "; ?></strong></td>
43             <td align=
"right"><strong><?php echo"<a href='vehiclestorebook.php?vahicleid=$row[vehicleid]'>Book Vehicle Now&gt;&gt;</a></strong>"; ?></strong></tr>
44           </table>
45         </div>
46         
47 <!-- wrap ends here -->
48 </div>
49         
50 <?php
51 include(
"footer.php");
52 ?>


Gõ tìm kiếm nhanh...